import { cfg_effectKey } from "../intoSkill/cfg_effect";
import SK_func, { Effect_Cfg_Input } from "../model/fight/skill/SK_func";
import { EffectCondition, Effect_tag, SK_type, Sk_minType } from "../shared/interface";
export function loadSkills_active() {
    let add = ((data: Effect_Cfg_Input) => { SK_func._addSkillTpl(data) });
    add({
        cd: 120,
        type: SK_type.主动技能,
        useUp: 'mp-/-10',
        name: '屏障',
        desc: '生成一面屏障,屏障未击破前将不会受到伤害',
        effect: [
            {
                tag: Effect_tag.自己,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.屏障
            }
        ]
    })
    add({
        cd: 0,
        type: SK_type.主动技能,
        useUp: '',
        minType: Sk_minType.普通攻击,
        name: '普通攻击',
        desc: '对敌人造成一定的物理伤害',

        effect: [
            {
                tag: Effect_tag.敌人,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.普攻_对目标造成物理伤害_1
            }
        ]
    })
    add({
        cd: 1,
        type: SK_type.主动技能,
        useUp: 'mp-/-5',
        minType: Sk_minType.技能,
        name: '魔法攻击',
        desc: '对敌人造成一定的魔法伤害',
        effect: [
            {
                tag: Effect_tag.敌人,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.对目标造成魔法伤害_1
            }
        ]
    })
    add({
        cd: 60,
        type: SK_type.主动技能,
        useUp: 'mp-/-5',
        minType: Sk_minType.技能,
        name: '范围魔法伤害',
        desc: '对敌人造成一定的魔法伤害',
        effect: [
            {
                tag: Effect_tag.敌人,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.对目标造成魔法伤害_高范围
            }
        ]
    })
    add({
        cd: 120,
        type: SK_type.主动技能,
        useUp: 'mp-/-5',
        minType: Sk_minType.技能,
        name: '死亡一指',
        desc: '对敌人造成一定的魔法伤害',
        effect: [
            {
                tag: Effect_tag.敌人,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.对目标造成魔法伤害_单体高伤害
            }
        ]
    })
    add({
        cd: 120,
        type: SK_type.主动技能,
        useUp: 'mp-/-5',
        minType: Sk_minType.技能,
        name: '强化攻击',
        desc: '对敌人造成一定的魔法伤害',
        effect: [
            {
                tag: Effect_tag.敌人,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.对目标造成物理伤害_单体高伤害
            }
        ]
    })
    add({
        cd: 120,
        type: SK_type.主动技能,
        useUp: 'mp-/-5',
        minType: Sk_minType.技能,
        name: '横扫千军',
        desc: '对敌人造成一定的魔法伤害',
        effect: [
            {
                tag: Effect_tag.敌人,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.对目标造成物理伤害_单体高伤害
            }
        ]
    })
    add({
        cd: 120,
        type: SK_type.主动技能,
        useUp: 'mp-/-10',
        minType: Sk_minType.技能,
        name: '不屈',
        desc: '恢复自身生命值,提高物理防御',
        effect: [
            {
                tag: Effect_tag.自己,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.恢复目标生命值_单体
            },
            {
                tag: Effect_tag.自己,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.提升物理防御
            }
        ]
    })
    add({
        cd: 100,
        type: SK_type.主动技能,
        useUp: 'mp-%-10',
        name: '生命避难所',
        desc: '对周围的友军恢复生命值',
        effect: [
            {
                tag: Effect_tag.友军,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.恢复目标生命值_范围
            }
        ]
    })
    add({
        cd: 10,
        type: SK_type.主动技能,
        useUp: 'mp-/-10',
        name: '剧毒之牙',
        desc: '造成范围真实伤害',
        effect: [
            {
                tag: Effect_tag.敌人,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.对目标造成真实伤害_高范围
            }
        ]
    })
    add({
        cd: 75,
        type: SK_type.主动技能,
        useUp: 'mp-/-10',
        name: '单体沉默',
        desc: '对目标造成伤害并沉默一段时间',
        effect: [
            {
                tag: Effect_tag.敌人,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.普攻_对目标造成物理伤害_1
            },
            {
                tag: Effect_tag.上一个效果的目标,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.沉默
            }
        ]
    })
    // 召唤
    add({
        cd: 120,
        type: SK_type.主动技能,
        useUp: 'mp-/-50',
        name: '黑暗契约',
        desc: '召唤出一定数量的亡灵协助作战,亡灵会直到战死或战斗结束才会消失',

        effect: [
            {
                tag: Effect_tag.自己,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.召唤永久单位_1
            },
            {
                tag: Effect_tag.自己,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.召唤永久单位_2
            }
        ]
    })
    // 召唤
    add({
        cd: 120,
        type: SK_type.主动技能,
        useUp: 'mp-/-50',
        name: '献祭召唤',
        desc: '召唤出一定数量的亡灵协助作战,亡灵会直到战死或战斗结束才会消失',

        effect: [
            {
                tag: Effect_tag.自己,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.召唤永久单位_地狱九头蛇_伪
            }
        ]
    })
    add({
        cd: 120,
        type: SK_type.主动技能,
        useUp: 'mp-/-50',
        name: '财迷',
        desc: '使用后增加金币',

        effect: [
            {
                tag: Effect_tag.敌人,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.普攻_对目标造成物理伤害_1
            },
            {
                tag: Effect_tag.自己,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.增加金币
            }
        ]
    })
    // 召唤
    add({
        cd: 120,
        type: SK_type.主动技能,
        useUp: 'mp-/-50',
        name: '九头蛇分裂',
        desc: '召唤出一定数量的亡灵协助作战,亡灵会直到战死或战斗结束才会消失',

        effect: [
            {
                tag: Effect_tag.自己,
                condition: EffectCondition.无,
                effect_key: cfg_effectKey.召唤永久单位_地狱九头蛇_分裂体
            }
        ]
    })
}